﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace wontec_claw
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {

            //var t = new sersonhelper();
            ////t.AddCmd()
            //t.AddCmd('t', ">%2x%c%2x", ">fet", (key, id, data) => {
            //    var selectid = data[0];
                
            //});
            //var x=t[">01t01F3DF"];


            //var ll = new List<byte>();
            //var t = new pipeline(ll,
            //    (a) =>
            //    {
            //        Console.WriteLine("read: " + a);
            //    },
            //    (b) =>
            //    {
            //        Console.WriteLine("write: "+b);
            //    });
            //ll.AddRange(System.Text.Encoding.Default.GetBytes(">01A01\r\n"));
            //t.SendData(">01A01");
            //t.SendData(">02A01",">02A");
            ////ll.AddRange(System.Text.Encoding.Default.GetBytes(">02A02\r\n"));
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var f = new Form1();
            //f.Text = "t1";
            Application.Run(f);
        }
    }
}
